<script type="text/javascript">
jQuery(document).ready(function($) {

<?foreach($fields as $field):?>
    <?=$field->get_check_ajax($action)?>
<?endforeach;?>

});
</script>